home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / programm.ing / rcs56.zoo / rcs / man / rcsfile.txt < prev    next >
Encoding:
Text File  |  1992-01-26  |  5.3 KB  |  199 lines

  1.  
  2.  
  3.  
  4. RCSFILE(5)        Printed December 19, 1991           RCSFILE(5)
  5.  
  6.  
  7.  
  8. NAME
  9.      rcsfile - format of RCS file
  10.  
  11. DESCRIPTION
  12.      An    RCS file's contents are    described by the grammar below.
  13.  
  14.      The text is free format: space, backspace,    tab, newline,
  15.      vertical tab, form    feed, and carriage return (collectively,
  16.      white space) have no significance except in strings.
  17.      However, an RCS file must end in a    newline    character.
  18.  
  19.      Strings are enclosed by @.     If a string contains a    @, it
  20.      must be doubled; otherwise, strings may contain arbitrary
  21.      binary data.
  22.  
  23.      The meta syntax uses the following    conventions: `|' (bar)
  24.      separates alternatives; `{' and `}' enclose optional
  25.      phrases; `{' and `}*' enclose phrases that    may be repeated
  26.      zero or more times; `{' and '}+' enclose phrases that must
  27.      appear at least once and may be repeated; Terminal    symbols
  28.      are in boldface; nonterminal symbols are in italics.
  29.  
  30.      rcstext    ::=  admin {delta}* desc {deltatext}*
  31.  
  32.      admin    ::=  head    {num};
  33.              { branch    {num}; }
  34.              access    {id}*;
  35.              symbols    {id : num}*;
  36.              locks    {id : num}*;  {strict  ;}
  37.              { comment    {string}; }
  38.              { expand    {string}; }
  39.              { newphrase }*
  40.  
  41.      delta    ::=  num
  42.              date    num;
  43.              author    id;
  44.              state    {id};
  45.              branches    {num}*;
  46.              next    {num};
  47.              { newphrase }*
  48.  
  49.      desc    ::=  desc    string
  50.  
  51.      deltatext    ::=  num
  52.              log    string
  53.              { newphrase }*
  54.              text    string
  55.  
  56.      num    ::=  {digit{.}}+
  57.  
  58.      digit    ::=  0 | 1 | ... | 9
  59.  
  60.  
  61.  
  62.  
  63. Page 1                     TARGON /35     Operating System
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. RCSFILE(5)        Printed December 19, 1991           RCSFILE(5)
  71.  
  72.  
  73.  
  74.      id        ::=  letter{idchar}*
  75.  
  76.      letter    ::=  any letter
  77.  
  78.      idchar    ::=  any visible graphic character except special
  79.  
  80.      special    ::=  $ | , | . | : | ; | @
  81.  
  82.      string    ::=  @{any character, with @ doubled}*@
  83.  
  84.      newphrase    ::=  id    word* ;
  85.  
  86.      word    ::=  id    | num |    string | :
  87.  
  88.      Identifiers are case sensitive.  Keywords are in lower case
  89.      only.  The    sets of    keywords and identifiers may overlap.  In
  90.      most environments RCS uses    the ISO    8859/1 encoding:  letters
  91.      are octal codes 101-132, 141-172, 300-326,    330-366    and 370-
  92.      377, visible graphic characters are codes 041-176 and
  93.      240-377, and white    space characters are codes 010-015 and
  94.      040.
  95.  
  96.      The newphrase productions in the grammar are reserved for
  97.      future extensions to the format of    RCS files.  No newphrase
  98.      will begin    with any keyword already in use.
  99.  
  100.      The delta nodes form a tree.  All nodes whose numbers
  101.      consist of    a single pair (e.g., 2.3, 2.1, 1.3, etc.)  are on
  102.      the trunk,    and are    linked through the next    field in order of
  103.      decreasing    numbers.  The head field in the    admin node points
  104.      to    the head of that sequence (i.e., contains the highest
  105.      pair).  The branch    node in    the admin node indicates the
  106.      default branch (or    revision) for most RCS operations.  If
  107.      empty, the    default    branch is the highest branch on    the
  108.      trunk.
  109.  
  110.      All delta nodes whose numbers consist of 2n fields    (n)
  111.      (e.g., 3.1.1.1, 2.1.2.2, etc.)  are linked    as follows.  All
  112.      nodes whose first 2n-1 number fields are identical    are
  113.      linked through the    next field in order of increasing
  114.      numbers.  For each    such sequence, the delta node whose
  115.      number is identical to the    first 2n-2 number fields of the
  116.      deltas on that sequence is    called the branchpoint.     The
  117.      branches field of a node contains a list of the numbers of
  118.      the first nodes of    all sequences for which    it is a
  119.      branchpoint.  This    list is    ordered    in increasing numbers.
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. Page 2                     TARGON /35     Operating System
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. RCSFILE(5)        Printed December 19, 1991           RCSFILE(5)
  137.  
  138.  
  139.  
  140.      Example:
  141.  
  142.                 Head
  143.                   |
  144.                   |
  145.                   v               / \
  146.                   ---------              /   \
  147.     / \         / \      |          |         / \     /     \
  148.        /   \        /    \     |     2.1  |        /    \    /    \
  149.       /        \       /     \    |          |       /     \     /     \
  150.      /1.2.1.3\      /1.3.1.1\   |          |      /1.2.2.2\   /1.2.2.1.1.1\
  151.      ---------      ---------   ---------      ---------   -------------
  152.      ^          ^          |          ^            ^
  153.      |          |          |          |            |
  154.      |          |          v          |            |
  155.     / \          |          ---------         / \        |
  156.        /   \          |          \     1.3  /        /    \        |
  157.       /        \          ---------\     /       /     \-----------
  158.      /1.2.1.1\            \   /      /1.2.2.1\
  159.      ---------             \ /      ---------
  160.      ^              |          ^
  161.      |              |          |
  162.      |              v          |
  163.      |              ---------          |
  164.      |              \     1.2  /          |
  165.      ----------------------\     /---------
  166.                 \   /
  167.                  \ /
  168.                   |
  169.                   |
  170.                   v
  171.                   ---------
  172.                   \     1.1  /
  173.                    \     /
  174.                 \   /
  175.                  \ /
  176.  
  177.                Fig. 1: A revision tree
  178.  
  179. IDENTIFICATION
  180.      Author: Walter F. Tichy, Purdue University, West Lafayette,
  181.      IN, 47907.
  182.      Revision Number: 5.1; Release Date: 1991/08/19.
  183.      Copyright O 1982, 1988, 1989 by Walter F. Tichy.
  184.      Copyright O 1990, 1991 by Paul Eggert.
  185.  
  186. SEE ALSO
  187.      ci(1), co(1), ident(1), rcs(1), rcsdiff(1), rcsmerge(1),
  188.      rlog(1),
  189.      Walter F. Tichy, RCS--A System for    Version    Control,
  190.      Software--Practice    & Experience 15, 7 (July 1985),    637-654.
  191.  
  192.  
  193.  
  194.  
  195. Page 3                     TARGON /35     Operating System
  196.  
  197.  
  198.  
  199. ə